/*************************************************************************
> File Name: stu.cpp
> Author: hzy
> Created Time: 2023-08-08 14:55:41
> Description:
************************************************************************/
#include <iostream>
#include <string.h>

using namespace std;

struct Stu
{
private:
    int id;
    string name;

public:
    void setId(int myid)
    {
        id = myid;
    }
    void setName(string myname)
    {
        name = myname;
    }
    void show()
    {
        cout << "ID = " << id << ", name =" << name << endl;
    }
};

int main()
{
    Stu stu;

    stu.setId(1);
    stu.setName("小猪猪");
    stu.show();

    return 0;
}